import Vue from 'vue'
import Vuex from 'vuex'
import cart from './cart'
import address from './address'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // tabbar活动显示
    tabbarActive:0,
    // tabbar是否显示
    isTabShow:true,

  },
  getters: {
  },
  mutations: {
    changeTabbarActive(state,val){
      // Cookie.set('tabbarActive' , val)
      state.tabbarActive = val
    },
    changeTabShow(state){
      state.isTabShow = !state.isTabShow
    },

  },
  actions: {
  },
  modules: {
    cart,
    address
  }
})
